package cn.stu.framework.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * 用户详细信息vo
 *
 * @author 郑志豪
 * @date 2023/10/31
 */
@Data
public class UsersDetailVo implements Serializable {
    private Long userDetailId;
    @NotBlank(message ="登录名为空" )
    private String acc;

    private String pwd;
    @NotNull(message ="id为空" )
    private Long userId;
    @NotBlank(message ="姓名为空" )
    private String name;
    @NotBlank(message ="电话为空" )
    private String tel;
    @NotNull(message ="性别为空" )
    private Integer sex;
    @NotBlank(message ="邮件为空" )
    private String email;
    @NotNull(message ="入职时间为空" )
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date hireTime;
    @NotBlank(message ="id为空" )
    private String hireTimes;

    private String userImage;
    private String roleName;
    private String deptName;
    @NotNull(message ="id为空" )
    private Long roleId;
    @NotNull(message ="部门为空" )
    private Long deptId;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime updateTime;

    private Long updateId;

    private Long createId;

    private Integer isDisable;

}
